package com.imooc;

public class FloatDemo {
	public static void main(String[] arg){
		//定一个单精度浮点型变量
		float f = 1234.328f;
		System.out.println("f=" + f);
		//定义一个双精度浮点类型变量
		double d = 5623.464;
		System.out.println("d=" + d );
		//将整型复制给浮点型
		double d1 = 123;
		System.out.println(d1);
		double d2 = d;
		System.out.println(d2);
	}
	
} 
